#include "Ballot.h"


Ballot::Ballot(void)
{
}


Ballot::~Ballot(void)
{
}

void Ballot::print() {
	int n = elections.size();
	for( int i = 0 ; i < n ; ++i ) 
	{
		cout << elections[i]->GetLevel() << endl;
		cout << elections[i]->GetName() << endl;
		cout << ( elections[i]->IsDirect() ? "Direct vote" : "Indirect vote" )<< endl;
		int n2 = elections[i]->GetCandidates().size();
		for( int j = 0 ; j < n2 ; ++j ) 
		{
			cout << j + 1 << ' ' << elections[i]->GetCandidates().at(j) << endl;
		}

	}
}